export const mixin = {
    methods: {
      notify(title, type) {
        this.$notify({
          title: title,
          type: type
        })
      },
      /*
       *   根据相对路径获得绝对路径
       */
      getImgUrl(relativeUrl) {
        return 'http://localhost:8888' + relativeUrl;
      },
      changesex(value) {
        if (value === 0) {
          return '女';
        } else if (value === 1) {
          return "男"
        }
      },
    }
}
